package com.hw.common.exception;


import com.hw.model.common.ResultCode;

public class BaseException extends RuntimeException {
    private Integer errorCode;

    public BaseException() {
    }
    public BaseException(Integer code, String message) {
        super(message);
        this.errorCode = code;
    }

    public BaseException(String message){
        super(message);
        this.errorCode = ResultCode.FAIL;
    }

    public Integer getErrorCode(){
        return this.errorCode;
    }
}
